package com.ruoqing.auth.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.ruoqing.auth.dao.AuthUserDao;
import com.ruoqing.auth.service.AuthUserService;
import com.ruoqing.redis.domain.AuthUser;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
	* @author YaoXian
	* @title: AuthUserServiceImpl
	* @projectName ruoxi-blog
	* @description: 若兮微服务 - 认证授权中心 - 用户表业务层接口
	* @date 2020-11-26 15:07
	*/
@Service
public class AuthUserServiceImpl implements AuthUserService {
		
		@Resource
		private AuthUserDao authUserDao;
		
		public AuthUser getAuthUserByUserName(String username) {
				QueryWrapper<AuthUser> queryWrapper = new QueryWrapper<AuthUser>();
				queryWrapper.eq("username",username);
				return authUserDao.selectOne(queryWrapper);
		}
}
